﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Webdiyer.WebControls.Mvc;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
namespace MvcApplication2.Models
{
    public class Category
    {
        [Key]
        public int Id { get; set; }
        public string Name { get; set; }
        public int? ParentId { get; set; }
         [ForeignKey("ParentId")]
        public Category Categorykey { get; set; }

    }
}